package org.dromara.hotel.domain.bo;

import org.dromara.hotel.domain.TerHotelOrders;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 酒店订单业务对象 ter_hotel_orders
 *
 * @author xch
 * @date 2025-06-11
 */
@Data
@AutoMapper(target = TerHotelOrders.class, reverseConvertGenerate = false)
public class TerHotelOrdersBo{

    /**
     *
     */
    private String id;

    /**
     *
     */
    private Long userId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long roomId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long hotelId;

    /**
     * 入住开始日期
     */
    @NotNull(message = "入住开始日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private LocalDate startDate;

    /**
     * 入住结束日期
     */
    @NotNull(message = "入住结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private LocalDate endDate;

    /**
     * 总结
     */
    private Integer totalPrice;

    /**
     * 状态枚举
     */
    private Integer orderStatus;


    /**
     * 预付金额
     */

    @NotNull(message = "支付金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer prepayAmount;

    /**
     * 入住人电话
     */
    @NotNull(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mobile;

    /**
     * 优惠劵id
     */
    private Long couponId;

    /**
     * 支付方式（微信/支付宝）
     */
    private String paymentMethod;

    /**
     * 是否续订订单
     */
    private String isRenew;

    /**
     * 优惠金额
     */
    private Long couponPrice;

    /**
     * 优惠时长
     */
    private Long couponHour;

    /**
     * 预计收入
     */
    private Long revenue;

    /**
     * 钥匙id
     */
    private String keyId;

    /**
     * 门锁密钥
     */
    private String doorKey;

    /**
     * 原续订id
     */
    private String renewId;

    /**
     * 退款编号
     */
    private String refundId;
    @NotNull(message = "支付金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private String  name;
    @NotNull(message = "预计到店时间", groups = { AddGroup.class, EditGroup.class })
    private String arrivalTime;

    private String roomNo;

    private String openId;
    private String createTime;
    private String updateTime;
    /**
     * 身份证图片
     */
    private String idCardurl;
}
